package com.tanyu.drawing;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

/**
 * @Author Tanyu
 * @Date 2020/6/5 9:15
 * @Description
 * @Version 1.0
 */
public class TestDrawing {

  public static void main(String[] args) {

  }

  /**
   * 合成测试
   */
  public static void testComposite(){
    //创建背景图片（带透明分量的）
    BufferedImage bg=new BufferedImage(300,300,BufferedImage.TYPE_INT_ARGB);
    Graphics2D graphics2D= (Graphics2D) bg.getGraphics();
    graphics2D.setColor(Color.yellow);
  }

}
